#include <hardware/hardware.h>
#include <hardware/mytest.h>
#include <string>

int main(){
    mytest_module_t* moudle;
    mytest_device_t* mytest_device = NULL;
    if(hw_get_module(MYTEST_HARDWARE_MODULE_ID,(const hw_module_t**)&moudle) == 0){
        if(((hw_module_t*)moudle)->methods->open((hw_module_t*)moudle,MYTEST_HARDWARE_MODULE_ID,(struct hw_device_t**)&mytest_device) ==0){
            if(mytest_device){
                printf("mytest_device->addTest %d\n",mytest_device->addTest(1,2));
            }else{
                printf("mytest_device->addTest error1\n");
            }
        }
    }else{
            printf("mytest_device->addTest error2\n");
    }
    return 0;
}
